package org.zj.webview.app.listener;

import lombok.extern.slf4j.Slf4j;
import org.noear.solon.Solon;
import org.noear.solon.annotation.Component;

/**
 * @author zj
 * @since 2025/7/26
 */
@Slf4j
@Component
public class WebViewStoppedListener implements WebViewStateListener {
    public void onStopped() {
        new Thread(() -> Solon.stopBlock(true, 1, 0)).start();
    }
}
